import React, { Component } from 'react';
import {
    StyleSheet,
    View,
    Text,
    Image,
} from 'react-native';
import MyNav from "../extendsComponent/MyNav";
class Collect extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.welcome}>
                    i am Collect
                </Text>
            </View>
        )
    }
}
export default class CollectComponent extends Component {
    static navigationOptions = {
        tabBarLabel:"收藏",
        tabBarIcon: <Image style={{width:20,height:20}} source={require("../res/contact_default.png")} />,
    };
    render() {
        return (
            <View style={styles.container}>
                <MyNav
                    title={"收藏"}
                    color={"#1aa1e5"}
                    textColor={"white"}
                />
               <Collect/>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    },
});
